package com.sun.temp.utils;

import com.github.xingshuangs.iot.protocol.s7.enums.EPlcType;
import com.github.xingshuangs.iot.protocol.s7.service.S7PLC;

public class PLCUtil {
    private static S7PLC s7PLC = new S7PLC(EPlcType.S200_SMART, "192.168.2.3");

    public static int readUInt16(String address) {
        return s7PLC.readUInt16(address);
    }

    public static void writeInt16(String address,int value) {
        s7PLC.writeInt16(address, (short)value);
    }
}
